class AnchorEntity {
  int id;
  int userId;
  int anchorType;
  int roomId;
  String coverPicture;
  String sex;
  String name;
  String idNumber;
  String number;
  String idCard;
  String details;
  String bankCardNumber;
  int giftReceived;
  int integral;
  int contribution;
  String description;
  int heat;
  int experience;
  int level;
  int broadcastStatus;
  String createdAt;
  String nickname;
  String avatar;
  String anchorTitle;
  bool isAttention;

  AnchorEntity(
      {this.id,
        this.userId,
        this.anchorType,
        this.roomId,
        this.coverPicture,
        this.sex,
        this.name,
        this.idCard,
        this.details,
        this.bankCardNumber,
        this.giftReceived,
        this.integral,
        this.idNumber,
        this.number,
        this.anchorTitle,
        this.contribution,
        this.description,
        this.heat,
        this.experience,
        this.level,
        this.broadcastStatus,
        this.createdAt,
        this.nickname,
        this.avatar,
        this.isAttention});

  AnchorEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    anchorType = json['anchor_type'];
    roomId = json['room_id'];
    anchorTitle = json['anchorTitle'];
    sex = json['sex'];
    idNumber = json['id_number'];
    number = json['number'];
    coverPicture = json['cover_picture'];
    name = json['name'];
    idCard = json['id_card'];
    details = json['details'];
    bankCardNumber = json['bank_card_number'];
    giftReceived = json['gift_received'];
    integral = json['integral'];
    contribution = json['contribution'];
    description = json['description'];
    heat = json['heat'];
    experience = json['experience'];
    level = json['level'];
    broadcastStatus = json['broadcast_status'];
    createdAt = json['created_at'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    isAttention = json['is_attention'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['anchor_type'] = this.anchorType;
    data['room_id'] = this.roomId;
    data['cover_picture'] = this.coverPicture;
    data['name'] = this.name;
    data['id_card'] = this.idCard;
    data['details'] = this.details;
    data['bank_card_number'] = this.bankCardNumber;
    data['gift_received'] = this.giftReceived;
    data['integral'] = this.integral;
    data['contribution'] = this.contribution;
    data['description'] = this.description;
    data['anchorTitle'] = this.anchorTitle;
    data['id_number'] = this.idNumber;
    data['number'] = this.number;
    data['heat'] = this.heat;
    data['sex'] = this.sex;
    data['experience'] = this.experience;
    data['level'] = this.level;
    data['broadcast_status'] = this.broadcastStatus;
    data['created_at'] = this.createdAt;
    data['nickname'] = this.nickname;
    data['avatar'] = this.avatar;
    data['is_attention'] = this.isAttention;
    return data;
  }
}